package com.nineclock.auth.intergration.processor;

import com.nineclock.auth.intergration.entity.IntergrationAuthenticationEntity;
import com.nineclock.system.dto.SysUserDTO;

/**
 * @author zhangyan
 * @date 2021/4/1 19:49
 */

public interface AuthenticationProcessor {

    /**
     * 判断当前认证处理器 是否能够处理本地认证
     * 从 IntegrationAuthenticationEntity参数中认证类型 authType 判断当前提交认证方式是哪个
     */
    public boolean support(IntergrationAuthenticationEntity entity);

    /**
     * 执行认证操作
     */
    public SysUserDTO authenticate(IntergrationAuthenticationEntity entity);
}